@import url('//at.alicdn.com/t/font_516069_wbgi0vbrshv9529.css');
@import "animate";

.page {
  width: 100%;
  height: 100vh;
  color: #444;

  .wv-header {
    background-image: linear-gradient(to right, #1FB863, #20B888) !important;

    &-title {
      font-size: 20px !important;
    }
  }
}

.main-header-fixed {
  padding-top: 50px;
}

.login-wrapper {
  padding: 15px;

  .weui-btn {
    margin-top: 15px;
  }
}

.register-view {
  .back-btn {
    .iconfont {
      font-size: 22px;
    }

    .iot-back {
      color: #fff;
    }
  }
}

.weui-tabbar {
  .weui-tabbar__item {
    .iconfont {
      font-size: 16px;
      line-height: 1;
    }

    .weui-tabbar__label {
      font-size: 12px;
    }
  }
  .weui-tabbar__item.weui-bar__item_on {
    .iconfont {
      color: #09bb07;
    }
  }
}

.person-info-box {
  background-image: linear-gradient(to right, #1FB863, #20B888) !important;
  padding: 30px 15px;
  color: #fff;
  overflow: hidden;

  .avatar {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e9e9e9;
    text-align: center;
    float: left;

    .iot-person {
      color: #666666;
      font-size: 24px;
      line-height: 60px;
    }
  }

  .info {
    float: left;
    padding-left: 15px;

    &-tip {
      font-size: 80%;
      line-height: 30px;
    }
  }

  .nav-right {
    float: right;
    line-height: 26px;
  }
}

.user-profiles-view {
  .nav-group {
    .weui-cell_access {
      color: #444;
    }

    .iconfont {
      padding-right: 10px;
    }

    .iot-yue {
      color: #ff6543;
    }
    .iot-order {
      color: #6091ff
    }
    .iot-saoma {
      color: #20bde4
    }
    .iot-score {
      color: #e41c58
    }
    .iot-invite {
      color: #e4574b
    }
  }

  .user-sign-in {
    background: #e0b846;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    span:before {
      font-family: iconfont;
      content: "\e606";
      margin-right: 5px;
    }
  }
}

.user-charge-view {
  .charge-list {
    margin: 50px 15px;

    .weui-grid {
      height: 80px;
      text-align: center;
      .money-value {
        color: #1e8025;
      }
      .score-value {
        margin-top: 10px;
        font-size: 12px;
        color: #ff7e34;
      }
    }

    .weui-grid.active {
      background-color: #d5e6ff;
    }
  }

  .pay-modes {
    .weui-check__label {
      .weui-cell__bd {
        font-size: 14px !important;
      }
    }

    .weui-check__label:first-child {
      .weui-cell__bd {
        p.wxpay:before {
          font-family: iconfont;
          content: '\e66a';
          margin-right: 5px;
          color: #23bb31;
        }
      }
    }

    .weui-check__label:last-child {
      .weui-cell__bd {
        p.alipay:before {
          font-family: iconfont;
          content: '\e624';
          margin-right: 5px;
          color: #00a0e9;
        }
      }
    }
  }

  .charge-btn {
    position: absolute;
    bottom: 10px;
    padding: 10px;
    width: 95%;
    text-align: center;
    .weui-btn {
      font-size: 16px !important;
    }
  }
}

.order-list-view, .order-charge-list-view, .score-list-view{

  .order-list {
    background-color: #F2F2F2;
  }

  .order-item {
    margin-bottom: 10px;

    .weui-form-preview__label {
      font-size: 0.8em;
    }
    .weui-form-preview__value {
      font-size: 0.8em;
    }
  }

  .loading-tips {
    text-align: center;
  }
}

.order-detail-view {
  .order-info {
    margin-bottom: 10px;

    .weui-form-preview__label {
      font-size: 0.8em;
    }
    .weui-form-preview__value {
      font-size: 0.8em;
    }
  }

  .order-stop-btn {
    position: absolute;
    bottom: 10px;
    padding: 10px;
    width: 95%;
    text-align: center;
    .weui-btn {
      font-size: 16px !important;
    }
  }
}

.device-detail-view {
  .device-empty {
    width: 100%;
    margin: 0 auto;
    padding-top: 50%;
    text-align: center;
    .iot-empty {
      font-size: 5em;
      color: #f1f1f1;
    }
    p {
      font-size: 14px;
      color: #888;
    }
  }

  .device-info {
    .banner {
      width: 100%;
      margin: 0 auto;
      text-align: center;
      background-image: linear-gradient(to right, #5ab886, #5eb871);

      padding-bottom: 10px;

      .iot-battery {
        font-size: 5em;
        color: #FFF;
        line-height: 1.3em;
      }

      .device-address {
        font-size: 12px;
        color: #f2f2f2;
      }

      .price-tips {
        width: 100%;
        text-align: center;
        color: #fff;
        font-size: 14px;
      }
    }
  }

  .port-status {
    .iot-battery-port, .iot-battery-port-solid {
      font-size: 26px;
      color: green;
    }
    .iot-battery-port-solid {
      color: red;
    }

    .port-tip {
      padding: 5px 15px;
      .tip-item {
        font-size: 13px;
        margin-right: 15px;
        .iconfont {
          font-size: 16px;
        }
      }
      .use-tip {
        float: right;
        font-size: 12px;
        line-height: 28px;
        color: #5191ff;
      }
    }
  }

  .use-tips-about-money {
    padding: 15px 10px;
    border-top: 1px solid #f2f2f2;
    .tip-item {
      font-size: 12px;
      color: #888;
      line-height: 1.1;
    }
  }
}

.protocol-view {
  .container-protocol {
    padding: 50px 15px 10px 15px;
    font-size: 14px;
    line-height: 1.5;

    .tip {
      padding: 10px 0;
      font-size: 12px;
    }

    .list {
      padding-left: 0px;
      list-style-type: none;

      li div:first-child {
        color: #0f193d;
        font-size: 16px;
        font-weight: bold;
      }

      .sub-list {
        ul {
          list-style-type: decimal;
          padding-left: 25px;
          li {
            padding: 5px 0;
            font-size: 12px;
            color: #666666;
          }
        }
      }
    }
  }
}

.empty {
  width: 100%;
  margin: 0 auto;
  padding-top: 50%;
  text-align: center;
  .iot-empty {
    font-size: 5em;
    color: #f1f1f1;
  }
  p {
    font-size: 14px;
    color: #888;
  }
}

.device-detail-view {
  #map {
    height: 92vh;
    width: 100%;

    img[src*=copyright] {
      display: none;
    }

    .BMap_stdMpCtrl.anchorBL {
      height: 150px!important;
    }
  }
}

/** 优化weui 样式 */
.weui-toast {
  width: auto;
  padding: 5px 10px;
  .weui-toast__content {
    font-size: 14px;
  }
}